import 'package:fish_redux/fish_redux.dart';
import '../../../app_files.dart';
class UserTypeViewState implements Cloneable<UserTypeViewState> {
  String selectIndex;
  bool isChanged = false;

  @override
  UserTypeViewState clone() {
    return UserTypeViewState()
      ..selectIndex = selectIndex
      ..isChanged = isChanged;
  }
}

UserTypeViewState initState(Map<String, dynamic> args) {
  UserTypeViewState state = UserTypeViewState()
    ..isChanged = args != null ? args['isChanged'] ?? false : false;
  state.selectIndex =  GlobalStore.store.getState().userInfo.currentRoleName;
  return state;
}
